package com.roc.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class TblDictionaryItemId implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Column(name="DIC_TYPE")
	private String dicType;//DIC_TYPE  字典类型
	
	@Column(name="DIC_CODE")
	private String dicCode;//DIC_CODE  代码

	public String getDicType() {
		return dicType;
	}

	public void setDicType(String dicType) {
		this.dicType = dicType;
	}

	public String getDicCode() {
		return dicCode;
	}

	public void setDicCode(String dicCode) {
		this.dicCode = dicCode;
	}
	

    public boolean equals(Object other) {  
        if ((this == other))  
            return true;  
        if ((other == null))  
            return false;  
        if (!(other instanceof TblTermInfId))  
            return false;  
        TblDictionaryItemId castOther = (TblDictionaryItemId) other;  
  
        return ((this.getDicType() == castOther.getDicType()) || (this.getDicType() != null && castOther.getDicType() != null && this.getDicType().equals(castOther.getDicType())))  
                && ((this.getDicCode() == castOther.getDicCode()) || (this.getDicCode() != null && castOther.getDicCode() != null && this.getDicCode().equals(  
                        castOther.getDicCode())));  
    }  
  
    public int hashCode() {  
        int result = 17;  
  
        result = 37 * result + (getDicType() == null ? 0 : this.getDicType().hashCode());  
        result = 37 * result + (getDicCode() == null ? 0 : this.getDicCode().hashCode());  
        return result;  
    }  
}
